package com.ftx.controller.test.annotation.beans;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * Created by fengtingxin on 2020/4/15.
 */
@Component
public class Cat implements InitializingBean, DisposableBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println(" cat afterPropertiesSet");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println(" cat destroy");

    }
}
